<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    5. 编写函数has(arr , 60) 判断数组中是否存在60这个元素，返回布尔类型

   ```javascript
   var arr = [1, 2, 3, 60]
   var arr2 = [1, 2, 3]
</body>
<script>
    var arr=[15,12,13,14,60]
    var arr1=[15,12,13,14]
function has(x,y){
    for(var i=0;i<x.length;i++){
        if(x[i]===y){
            var t =1
            console.log(true)
        }
    }
    if(t!==1){
        console.log(false)
    }
}
has(arr1,60)

</script>
</html>